﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using thinger.HeatingControlProject._1.界面层;
using thinger.HeatingControlProject._4.实体类;

namespace thinger.HeatingControlProject
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //显示登录窗体
            FrmLogin frmLogin = new FrmLogin();
            DialogResult reuslt = frmLogin.ShowDialog();
            if (reuslt == DialogResult.OK)
            {
                Application.Run(new FrmMain());
            }
            else
            {
                Application.Exit();
            }
        }
        //用来保存当前登录用户对象
        public static SysAdmin currentAdmin = null;
    }
}
